<?php
include("connection/connection.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript" src="js/validate1.js"></script>
<script language="Javascript" type="text/javascript" src="js/ajaxFunction_rwss_new.js"></script>
<script language="Javascript" type="text/javascript" src="js/ajaxFunction1_q1.js"></script>
 <script src="http://code.jquery.com/jquery-1.4.2.min.js" type="text/javascript"></script>
 <script language=javascript>
function mult2()
{
	var value1=document.getElementById('factor1').value;
	var value2=document.getElementById('population_benefited1').value;
	var value3=Math.round(value1 * value2);
	document.getElementById('present_population1').value=value3;
	alert('Value of Population Benefited Field is '+ value2 +', Present Population is '+ value3 +' and Population Factor is ' + value1);	
}
</script>       
</head>

<body>
<div  class="section_format">
<form action="add_rwss_village_submit.php" method="post" onSubmit="mult2()" name="questionnaire1">
<input type="hidden" name="frmId" value="<?php echo $_REQUEST['var'];?>" />
<table width="707" border="1" cellspacing="1" cellpadding="1">
  <tr>
    <td colspan="4" bgcolor="#CCCCCC">&nbsp;<b>ADD VILLAGE/HABITATION</b></td>
    </tr>
 
  <tr>
    <td width="149">&nbsp;Select District</td>
    <td width="183">&nbsp;
      <font id=district>
		<select name="district" id="district" class="txt">
			<option value="0">Select District</option>
		</select></font></span><span id="districtLoader">
		<?php
		/*
		$result=mysql_query("select DISTINCT district_id, district_name from tbl_lookup_location order by district_name");
          while(list($id, $name)=mysql_fetch_array($result))
		  {
               echo "<option value=\"$id\">$name</option> \n" ;
          }   
		*/
		?>
		<font id="factor"><input type="hidden" size="20" class="txt5"></font>  </td>
    <td width="138">&nbsp;Select Block</td>
    <td width="214">&nbsp;<font id="block">
      <select name="block" class="txt">
        <option value="0">==============</option>
      </select>
    </font><span id="blockLoader"></span></td>
  </tr>
  <tr>
    <td>&nbsp;Select Grampanchayat</td>
    <td>&nbsp;   <font id="panchayat">
      <select name="panchayat" class="txt">
        <option value="0">==============</option>
      </select>
    </font><span id="panchayatLoader"></span>  </td>
    <td>&nbsp;Select Village</td>
    <td>&nbsp;<font id="village">
      <select name="village" class="txt">
        <option value="0">==============</option>
      </select>
    </font><span id="villageLoader"></span> </td>
  </tr>
  <tr>
    <td>&nbsp;Census Village Code</td>
    <td>&nbsp;   <font id="cvc">
      <input name="text" type="text" class="txt" value="" size="23" readonly="readonly" />
    </font></td>
    <td>&nbsp;Form ID</td>
    <td>&nbsp;<?php echo $_REQUEST['id'];?></td>
  </tr>
  
  
  <tr>
    <td colspan="4"><table border="0" width="698" id="table4" cellspacing="1" cellpadding="0" bgcolor="#EEEEEE">
				<tr>
					<td colspan="3"><span style="font-size: 4pt">&nbsp;</span></td>
				</tr>
				<tr>
					<td align="center" width="21%" bgcolor="#cccccc" height="58">
						<font face="Verdana" style="font-size: 8.5pt" color="#990000">Name of OH</font></td>
					<td align="center" width="23%" bgcolor="#cccccc" height="58">
						<font style="font-size: 8.5pt" face="Verdana" color="#990000">
						Code No. (As per IMIS)</font></td>
						<td align="center" width="13%" rowspan="" bgcolor="#cccccc">
						<font style="font-size: 8.5pt; font-style: normal" face="Verdana" color="#990000">Type MH/ OH</font></td>
					<td align="center" width="23%" bgcolor="#cccccc" height="58">
						<font face="Verdana" style="font-size: 8.5pt" color="#990000">
						Actual Status at Site (E/NT)</font></td>
				    <td align="center" width="20%" bgcolor="#cccccc"><font face="Verdana" style="font-size: 8.5pt" color="#990000">Covered/Not Covered</font></td>
				</tr>	
			</table>	  </td>
    </tr>
  <tr>
		<td colspan="4"><div id="habit"></div></td>
	</tr>
  <tr><td colspan="4" align="center"><input type="submit" name="submit" value="Submit" onclick="return validate1()"/></td></tr>
</table>
</form>
</div>
</body>
</html>
